package com.example.fpe_vote.db1.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.fpe_vote.db1.entity.VoteInfo;
import com.example.fpe_vote.vo.request.RequestAddVoteVo;
import com.example.fpe_vote.vo.request.RequestListVoteInfoVo;
import com.example.fpe_vote.vo.response.ResponseListVoteInfoVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2022-12-01
 */
public interface IVoteInfoService extends IService<VoteInfo> {
    //指定条件查询一条
    VoteInfo queryOne(String userName,String ghid,String prizeNum);
    //投票实现方法
    Boolean addVote(RequestAddVoteVo voteVo);
    //分页查询
    IPage<ResponseListVoteInfoVo> listVoteInfo(RequestListVoteInfoVo voteInfoVo);
}
